home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / pdl318.zip / PDLRUN.BXT < prev    next >
Text File  |  1992-10-17  |  1KB  |  62 lines

  1. echo off
  2. rem ***********************************************************************
  3. rem *                       PDLRUN.BAT                                    *
  4. rem *  GLOBAL VARIABLES:                                                  *
  5. rem *          %1 - PDL PATH             %5 - MISSING QUOTES FILE         *
  6. rem *          %2 - QUOTE HISTORY FILE   %6 - NUMBER OF RETRIES (0-9)     *
  7. rem *          %3 - INPUT FILE           %7 - PRODIGY AUTOLOGON NICKNAME  *
  8. rem *          %4 - OUTPUT FILE          %8 - PROGRAM TO CALL             *
  9. rem *                                                                     *
  10. rem ***********************************************************************
  11. echo *********************************************************************
  12. echo *                       PDLRUN.BAT                                  *
  13. echo *********************************************************************
  14. set TRY=%6
  15. set PDLRUN=ON
  16. cd %1
  17. pdl %3 %4
  18. :newtag
  19. pdlmis %3 %4 %5
  20. if ERRORLEVEL 1 GOTO :more
  21. GOTO :endit
  22. :more
  23. GOTO :T%TRY%
  24. :T0
  25. goto :nogood
  26. :T1
  27. set TRY=0
  28. goto :tag
  29. :T2
  30. set TRY=1
  31. goto :tag
  32. :T3
  33. set TRY=2
  34. goto :tag
  35. :T4
  36. set TRY=3
  37. goto :tag
  38. :T5
  39. set TRY=4
  40. goto :tag
  41. :T6
  42. set TRY=5
  43. goto :tag
  44. :T7
  45. set TRY=6
  46. goto :tag
  47. :T8
  48. set TRY=7
  49. goto :tag
  50. :T9
  51. set TRY=8
  52. :tag
  53. pdl -a %5 %4
  54. GOTO :newtag
  55. :nogood
  56. echo Retry count exhausted - PDL terminating
  57. :endit
  58. copy %2+%4 %2
  59. set PDLRUN=OFF
  60. %8
  61. rem
  62.